package org.juliette.wordsite.client;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;

class InsertCharacterClickListener implements ClickListener {
    TextBox tekstVeld;
    Button button;

    InsertCharacterClickListener(TextBox tb, Button b) {
        tekstVeld = tb;
        button = b;
    }

    public void onClick(Widget sender) {
        tekstVeld.setText(tekstVeld.getText() + button.getText());
        tekstVeld.setFocus(true);
    }
}